<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <!-- 跳过编译过程，渲染原始标签 -->
    <span v-pre>{{ this will not be compiled }}</span>
  </div>
  <script src="./js/vue.js"></script>
  <script>
    const app = new Vue({
      el: "#app",
      data: {
        username: "",
        age: 0,
        msg: "这是第一次消息",
      },
      methods: {
        clickAction() {
          this.age += 1;
          this.msg = "这是第" + this.age + "次更新消息";
        }
      },
    })
  </script>
</body>

</html>